package com.example.chatchatbackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.chatchatbackend.entity.dto.Comments;
import com.example.chatchatbackend.entity.vo.request.CommentsVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 丁真
 * @since 2024-10-28 05:03:47
 */
@Mapper
public interface CommentsMapper extends BaseMapper<Comments> {

    void insertList(List<Comments> commentsList);

    IPage<Comments> selectAll(Page<Comments> page, Object o);

    List<CommentsVO> getAll();
}
